package com.situ.Servlet.Test;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AjaxServlet1_1 extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String banji = req.getParameter("banji");
		String renshu = req.getParameter("renshu");
		System.out.println("班级 ： " + banji);
		System.out.println("人数 ： " + renshu);
		
		resp.setContentType("text/html;charset=utf-8");
		resp.getWriter().write("哈哈哈");
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doPost(req, resp);
	}

}
